// use localStorage to store the authority info, which might be sent from server in actual project.
// 获得token
export function getToken() {
  return  localStorage.getItem('auth-token') || null;
}
// 设置token
export function setToken(token) {
  if(token) {
    localStorage.setItem('auth-token', token);
  }else {
   localStorage.clear();
  }
}


// 获得token
export function getToken2() {
  console.log("============>>>>>执行了这里")
  return  localStorage.getItem('auth-token') || null;
}
